package com.hirsi.module.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hirsi.module.manager.entity.Manager;
import com.hirsi.module.manager.vo.param.QueryManagerParam;
import com.hirsi.module.manager.vo.result.ManagerResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 管理员表 Mapper 接口
 * </p>
 *
 * @author Hirsi
 * @since 2024-03-11
 */
@Mapper
public interface ManagerMapper extends BaseMapper<Manager> {

    IPage<ManagerResult> page(Page<ManagerResult> page, @Param("param") QueryManagerParam param);

    IPage<ManagerResult> pageByDepartmentId(Page<ManagerResult> page, @Param("departmentId") Integer departmentId);
}
